<template>
  <el-col ><div :span="10" class="grid-content bg-purple-light" >
    <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect"   text-color="#fff"
             active-text-color="#ffd04b">
      <el-menu-item index="1" class="el-menu-item" ><router-link to="/home">首页</router-link></el-menu-item>
      <el-menu-item index="2" class="el-menu-item" ><router-link to="/work">工作动态</router-link></el-menu-item>
      <el-menu-item index="3" class="el-menu-item" ><router-link to="/pre_business">个人业务</router-link></el-menu-item>
      <el-menu-item index="4" class="el-menu-item" ><router-link to="/org_business">机构业务</router-link></el-menu-item>
      <el-menu-item index="5" class="el-menu-item" ><router-link to="/about">关于学分银行</router-link></el-menu-item>
    </el-menu>
  </div>
  </el-col>
</template>

<script>
export default {
  name: "Tabbar_content",
  data() {
    return {
      activeIndex: '1',
      activeIndex2: '1'
    };
  },

  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    },
    gotolink(){
      this.$router.push()
    }
  }
}
</script>

<style scoped>

.el-menu-demo{
  position: center;
  background-color: #297fd0;
}
.el-menu-item{
  font-size: 25px;
}

.bg-purple-light {
  position: center;
}
</style>
